<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Xwgg/index')}">新闻列表</a></li>
        <li><a href="{:url('Xwgg/add')}">新闻分类</a></li>
        <li class="active"><a href="{:url('Xwgg/edit',array('id'=>$news.id))}">新闻分类</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('XwggeditPost')}">
        <input type="hidden" name="id" value="{$news.id}">
        <div class="form-group">
            <label for="inputTitle" class="col-sm-2 control-label">分类名称</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" id="text" name="text" value="{$news.text}" placeholder="请输入新闻">
            </div>
        </div>
<!--        <div class="form-group">-->
<!--            <label for="inputTitle" class="col-sm-2 control-label">链接</label>-->
<!--            <div class="col-sm-6">-->
<!--                <input type="text" class="form-control" id="inputTitle" name="url" value="{$news.url}" placeholder="请输入链接">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-2 control-label">图片<span class="form-required">*</span></label>-->
<!--            <div class="col-md-6 col-sm-10">-->
<!--                <input id="photo-1" type="hidden" name="image" value="{$news.image}">-->
<!--                <input id="photo-1-name" class="form-control" id="inputImage" type="text" name="image" value="{$news.image}" title="图片名称" disabled readonly>-->
<!--                <img id="photo-1-preview" width="40px">-->
<!--                <a href="javascript:uploadOneImage('图片上传','#photo-1');" class="btn btn-primary">上传</a>-->
<!--            </div>-->
<!--        </div>-->
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary">提交</button>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
    var editorcontent = new baidu.editor.ui.Editor();
    editorcontent.render('content');
</script>
</body>
</html>